home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3347 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  50 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: chang.unx.sas.com!walker
  3. From: walker@chang.unx.sas.com (Doug Walker)
  4. Subject: Re: Is a real good mpeg player possible on the amiga ?
  5. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  6. Message-ID: <DM3LFM.4oq@unx.sas.com>
  7. Date: Thu, 1 Feb 1996 12:59:46 GMT
  8. X-Nntp-Posting-Host: chang.unx.sas.com
  9. References: <4e2gqu$5ca@caers3.unicaen.fr> <4e7n75$krh@serpens.rhein.de> <386.6603T1404T1784@login.eunet.no> <PETERM.96Feb1112250@tui.maths.irl.cri.nz>
  10. Organization: SAS Institute Inc.
  11.  
  12. In article <PETERM.96Feb1112250@tui.maths.irl.cri.nz>,
  13. >I haven't followed all the details, but I can see that mpeg_play
  14. >calculates YUV for each frame in one buffer, then converts it to RGB
  15. >in another buffer, then finally renders it to the display device (in
  16. >my case with cybergraphics.library WritePixelArray()).  It is
  17. >conceivable that combining these operations could save a lot of memory
  18. >reads/writes.  Unfortunately I can't see how to do it because the YUV
  19. >and RGB frames are calculated in non-sequential order and saved in
  20. >buffers until they are needed.
  21.  
  22. The YUV data must be kept around for I and P frames so it can be
  23. referred to by frames that haven't been encountered yet, but B frames
  24. are never used as reference frames.  This means you could do in-place
  25. conversion for B frames.
  26.  
  27. The catch is that if you're only getting 7-10fps, you're probably going
  28. to want to drop all the B frames anyway to try to make the video move
  29. at a speed approaching real time.  Most real MPEG is encoded using a
  30. pattern like
  31.  
  32.    IBBPBBPBBPBB
  33.    
  34.    or
  35.    
  36.    IBBPBBPBBPBBPBB
  37.    
  38. so dropping all the B frames means you need to put 10 pictures on the
  39. screen per second to achieve the appearance of full-motion video if 
  40. the source video is 30 fps.
  41.  
  42. -- 
  43.   *****                    / walker@unx.sas.com
  44.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  45.  *|. o.| ||                \ AOL: weissblau
  46.   | o  |//     
  47.   ====== 
  48. Any opinions expressed are mine, not those of SAS Institute, Inc.
  49.  
  50.